﻿<UserControl x:Class="ModalWizard.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:sl="clr-namespace:ModalWizard"
    >
    <UserControl.Resources>
        <sl:BusinessData x:Key="DataSource" />
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Width="500" Height="325" Background="White" DataContext="{StaticResource DataSource}">

        <Grid.RowDefinitions>
            <RowDefinition Height="80"/>
            <RowDefinition Height="80"/>
            <RowDefinition Height="80"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        
        <Border Grid.Row="0" Background="AliceBlue" Margin="5" CornerRadius="5" />
        <Border Grid.Row="1" Background="Beige" Margin="5" CornerRadius="5" />
        <Border Grid.Row="2" Background="PaleGoldenrod" Margin="5" CornerRadius="5" />
        <Border Grid.Row="3" Background="Black" Margin="5" CornerRadius="5" Grid.RowSpan="2" />
        
        <!--
        <sl:Wizard x:Name="ctrlWizard" Title="Test Wizard" Grid.Row="0"  >
            <sl:Wizard.Pages>
                <sl:WizardPage1 x:Name="Page1" />
                <sl:WizardPage2 x:Name="Page2" />
                <sl:WizardPage3 x:Name="Page3" />
            </sl:Wizard.Pages>
        </sl:Wizard>
        -->
        
        <sl:WizardPage1 Grid.Row="0" Margin="50,10,0,0"/>
        <sl:WizardPage2 Grid.Row="1" Margin="50,10,0,0"/>
        <sl:WizardPage3 Grid.Row="2" Margin="50,10,0,0"/>
        
        <TextBlock x:Name="_txtMsg" Text="Messages"  Grid.Row="3" Margin="50,4,0,0" FontSize="14" Foreground="GreenYellow"/>
        
        <Button x:Name="btShowWizard" Grid.Row="4" Grid.Column="0"  
            Content="Show Wizard" 
            Width="90" Height="25" HorizontalAlignment="Right" Margin="10, 10, 105, 10"/>
            
         <Button x:Name="btShowDialog" Grid.Row="4" Grid.Column="0"  
            Content="Show Dialog" 
            Width="90" Height="25" HorizontalAlignment="Right" Margin="10"/>
    </Grid>
</UserControl>
